#ifndef SETFILEHANDLER_H
#define SETFILEHANDLER_H

#include <QObject>
#include "paths.h"
#include <QFile>
class SetFileHandler : public QObject
{
    Q_OBJECT
public:
    explicit SetFileHandler(QObject *parent = 0);

    static SetFileHandler* getInstance();
    bool readFfoxCustomPath(QString *path);
    bool readChroCustomPath(QString *path);
    bool readOperaCustomPath(QString *path);
    bool writeFfoxCustomPath(QString newPath);
    bool writeChroCustomPath(QString newPath);
    bool writeOperaCustomPath(QString nrePath);
    QString getLastError();

private:
    void generate();
    QFile* settingsFile;
    static SetFileHandler*  _instance;
    QString lastError;

};

#endif // SETFILEHANDLER_H
